<?php
/*
 * Created on 07.07.2008
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
  class Controller_Mail extends Controller_Base {
 	 	
	function index ($args) {
		

		error_log("HTTP_REFERER: ".$_SERVER['HTTP_REFERER']);		

		if(!$_SERVER['HTTP_REFERER'])
			die("error!");
		
		if(!$_POST[email])
			die("error 2001!");

		if(!$_POST[subject])
			die("error 2002!");			

		if(!$_POST[text])
			die("error 2003!");	

		if(!$_POST[feed])
			die("error 2004!");	
		
		$mail = new Model_Mail();
		
		$mail->doSend();
	}
 	
 }
?>
